<?php
declare(strict_types=1);

namespace App\Service\Web;

use App\Repository\Web\TagRepository;
use Hyperf\Di\Annotation\Inject;

class TagService
{
    #[Inject]
    private TagRepository $tagRepository;

    public function store(array $validated)
    {
        return $this->tagRepository->create($validated);
    }

    public function getTags()
    {
        return $this->tagRepository->getTags();
    }

    public function destroy(int $id)
    {
        return $this->tagRepository->destroy($id);
    }
}